from collections import namedtuple

Person = namedtuple("Person",["name","age","address"])

person = Person(name="lisi",age=18,address="北京")
print(person.name)
print(person.age)
print(person.address)
